home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20010306-20010921
/
000081_news@columbia.edu_ 26 Apr 2001 14:24:24 GMT.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.os.linux.networking,comp.protocols.kermit.misc
Subject: Re: copying a file to a ftp-server
Date: 26 Apr 2001 14:24:24 GMT
Organization: Columbia University
Lines: 41
Message-ID: <9c9b2o$gej$1@newsmaster.cc.columbia.edu>
References: <20010426.13080200@risa.athome>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 988295064 16851 128.59.39.2 (26 Apr 2001 14:24:24 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 26 Apr 2001 14:24:24 GMT
Xref: newsmaster.cc.columbia.edu comp.os.linux.networking:329852 comp.protocols.kermit.misc:12367
In article <20010426.13080200@risa.athome>, <christian.verbeek@gmd.de> wrote:
: Dear newgroup,
:
: how do i put a single file to a ftp server from the command line. With=20
: the ftp program i always end up in interactive mode, but i want to do=20
: this from within a script.
:
: So i need something like: ftpcopy myfile ftp://myftpserver
:
If you use the new Kermit FTP client:
http://www.columbia.edu/kermit/ftpclient.html
you can do it like this:
ftp -A kermit.columbia.edu -D kermit/incoming -bp debug.log
In this example:
ftp is a symlink to the C-Kermit 7.1 binary
-A means "log in as user anonymous"
-D means CD to the given directory
-b means force binary mode
-p means PUT
You can also specify a real username and password:
ftp -u christian.verbeek -P secret ...
And before anybody objects that cleartext passwords should never be used:
1. Sometimes you have no choice.
2. The Kermit FTP client supports several secure authentication
methods: Kerberos 4, Kerberos 5 GSSAPI, SRP, SSL/TLS.
Secure FTP servers are available. To find out more, see:
http://www.columbia.edu/kermit/ftpd.html
- Frank